/**
 * @author		Ben Layet
 * @version 	0.1
 * @date		31 Oct 2008
 * @copyright 	� Canon Europa N. V. 2004
 */
package org.ignoramus.application.view;

import org.ignoramus.application.model.Cards;
import org.ignoramus.application.model.ReviewCard;
import org.ignoramus.application.view.CardView;

/**
 * 
 */
public abstract class MemoryMapCell implements CardView
{
	private boolean			selected;
	private final String	cardId;
	private final Cards		cards;

	
	
	/**
	 * @param card
	 */
	public MemoryMapCell(String cardId, Cards cards)
	{
		this.cardId = cardId;
		this.cards = cards;
	}

	/**
	 * @return the card
	 */
	public ReviewCard getCard()
	{
		return cards.get(cardId);
	}

	/**
	 * @return the card id
	 */
	public String getCardId()
	{
		return cardId;
	}

	public boolean isSelected()
	{
		return selected;
	}

	public void setSelected(boolean selected)
	{
		this.selected = selected;
	}
	
	

}
